package djboom.materials.events {
	import flash.events.Event;

	/**
	 * .
	 * <br>
	 * 
	 * @author DJ BooM 
	 * @since 23.04.2010
	 * 
	 */

	public class SampleSelectableEvent extends Event {

		// ----------------------------------------------------------------------------
		// Свойства класса.
		// ----------------------------------------------------------------------------

		public static const SELECT:String = "selectSample";		public static const DESELECT:String = "deselectSample";
		
		private var _sampleName:String;
		
		// ----------------------------------------------------------------------------
		// Конструктор.
		// ----------------------------------------------------------------------------

		public function SampleSelectableEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
		}

		// ----------------------------------------------------------------------------
		// Публичные методы.
		// ----------------------------------------------------------------------------

		override public function clone():Event {
			var e:SampleSelectableEvent = new SampleSelectableEvent(this.type, this.bubbles, this.cancelable);
			e.sampleName = this.sampleName;
			return e;
		}
		
		public function get sampleName():String {
			return _sampleName;
		}
		
		public function set sampleName(sampleName:String):void {
			_sampleName = sampleName;
		}
	}
}